package textfileproces.arff;

public enum ARFF_DataType {
	NUMERIC(0, "NUMERIC"),
	STRING(1, "STRING"),
	DATE(2, "DATE"),
	ENUMERATE(3, "ENUMERATE");
	
	private int type;
	
	private String label;
	
	ARFF_DataType(int type, String label) {
		this.type = type;
		this.label = label;
	}
	
	public String toString() {
		return label;
	}
	
	public String toLowerCaseString() {
		return label.toLowerCase();
	}
	
	public int getType() {
		return type;
	}
	
	public static ARFF_DataType getEnumMember(String auxLabel){
		for (ARFF_DataType role:values()){
			String u = role.toString();
			if (u.equals(auxLabel)){
				return role;
			} 
		}
		return null;
	}

}
